<?php

namespace App\ServicesNew\Impl;

use App\Entities\LabelModel;
use App\ServicesNew\LabelService;

class LabelServiceImpl implements LabelService
{
    /**
     * @inheritDoc
     */
    public function getLabelsByCategoryId(int $categoryId)
    {
        return LabelModel::select('id', 'content')
            ->where('category_id', $categoryId)
            ->where('status', LabelModel::STATUS_ONLINE)
            ->get()->toArray();
    }
}
